<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <form action="">
    <!-- validate 将校验规则写在html中（不推荐） -->
    <input type="text" required >
    <input type="submit">
  </form>
  <!-- 1 引入jquery -->
  <script src="../libs/jquery-1.12.4.js"></script>
  <!-- 2 引入插件 -->
  <script src="./jquery-validation-1.14.0/dist/jquery.validate.js"></script>
  <!-- 初始化插件 -->
  <script>
    $(function () {
      // 想要验证哪个表单，就用哪个表单调用该方法
      $('form').validate()
    })
  </script>
</body>
</html>